package com.example.javadesign.adapter.demo.power.classadapter;

/**
 * @author 陳樂
 * @version 1.0.0
 * @ClassName PowerAdapter.java
 * @Description TODO
 * @createTime 2022年09月03日 23:48:00
 */
public class PowerAdapter extends Ac220 implements Dc5{

    @Override
    public int outputDc5() {
        int adapterInput = super.outPut220V();
        int adapterOutput = adapterInput/44;
        System.out.println("使用适配器 输入：" + adapterInput+"V,输出："+adapterOutput);
        return adapterInput;
    }

}
